<template>
    <div class="order">
        <navigator :level="level" :pathName="pathName"></navigator>
        <el-form ref="orderForm" :model="order" label-width="80px">
            <el-form-item label="预定人">
                <el-col :span="6">
                    <el-input placeholder="预定人" v-model="order.bookBy"></el-input>
                </el-col>
            </el-form-item>
            <el-form-item label="联系方式">
                <el-col :span="6">
                    <el-input placeholder="联系方式" v-model="order.bookContact"></el-input>
                </el-col>
            </el-form-item>
            <el-form-item label="预定金额">
                <el-col :span="6">
                    <el-input placeholder="预定金额" v-model="order.bookMoney"></el-input> 元
                </el-col>
            </el-form-item>
            <el-form-item label="婚礼日期">
                <el-col :span="6">
                    <el-date-picker type="date" placeholder="选择阳历日期" v-model="order.solarDate"
                                    style="width: 100%;"></el-date-picker>
                </el-col>
                <el-col :span="6">
                    <el-time-picker type="date" placeholder="选择阴历日期" v-model="order.lunarDate"
                                    style="width: 100%;"></el-time-picker>
                </el-col>
            </el-form-item>
            <el-form-item label="活动性质">
                <el-checkbox-group v-model="order.type">
                    <el-checkbox label="美食/餐厅线上活动" name="type"></el-checkbox>
                    <el-checkbox label="地推活动" name="type"></el-checkbox>
                    <el-checkbox label="线下主题活动" name="type"></el-checkbox>
                    <el-checkbox label="单纯品牌曝光" name="type"></el-checkbox>
                </el-checkbox-group>
            </el-form-item>
            <el-form-item label="特殊资源">
                <el-radio-group v-model="order.resource">
                    <el-radio label="线上品牌商赞助"></el-radio>
                    <el-radio label="线下场地免费"></el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="活动形式">
                <el-input type="textarea" v-model="order.desc"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="onSubmit">立即创建</el-button>
                <el-button>取消</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
    import Navigator from '../../common/navigator.vue';

    export default {
        data() {
            return {
                level: 1,
                pathName: '创建订单',
                order: {
                    bookBy: '',
                    bookContact: '',
                    bookMoney: '',
                    solarDate: '',
                    lunarDate: '',
                    delivery: false,
                    type: [],
                    resource: '',
                    desc: ''
                }
            }
        },
        components: {
            Navigator
        },
        methods: {
            onSubmit() {
                console.log('submit!');
            }
        }
    }
</script>

<style scoped>
    .order {

    }
</style>